package com.digitalchina.lxnsy.viewholder;

import android.view.ViewGroup;
import android.widget.TextView;

import com.digitalchina.lxnsy.R;
import com.digitalchina.lxnsy.entity.AnswerVO;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;

/**
 * ================================================
 * 项目名称：BigData
 * 类描述：
 * 包名：com.digitalchina.bigdata.viewholder
 * 创建人：byd
 * 创建时间：2017/3/28 14:28
 * 修改备注：
 * ================================================
 */

public class ArticleListHolder extends BaseViewHolder<AnswerVO> {

    private TextView tvArticleTitle;
    private TextView tvArticleContent;
    private TextView tvArticleFrom;
    private TextView tvArticleDate;


    public ArticleListHolder(ViewGroup parent) {
        super(parent, R.layout.item_fg_article_list);
        tvArticleTitle = $(R.id.item_fg_article_tv_title);
        tvArticleContent = $(R.id.item_fg_article_tv_content);
        tvArticleFrom = $(R.id.item_fg_article_tv_from);
        tvArticleDate = $(R.id.item_fg_article_tv_from);
    }

    @Override
    public void setData(AnswerVO data) {
        super.setData(data);
        tvArticleTitle.setText("");
        tvArticleContent.setText("");
        tvArticleFrom.setText("");
        tvArticleDate.setText("");
    }
}
